home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
TEMP
/
GNU
/
bison
/
GrammarOut
< prev
next >
Wrap
Text File
|
1995-06-28
|
840b
|
35 lines
Grammar Outline
Previous: <Grammar File=>GrammarFil> * Next: <Symbols=>Symbols> * Up: <Grammar File=>GrammarFil>
#Wrap on
{fH3}Outline of a Bison Grammar{f}
A Bison grammar file has four main sections, shown here with the
appropriate delimiters:
#Wrap off
#fCode
%\{
{fStrong}C declarations{f}
%\}
{fStrong}Bison declarations{f}
%%
{fStrong}Grammar rules{f}
%%
{fStrong}Additional C code{f}
#f
#Wrap on
Comments enclosed in {fEmphasis}\/\* … \*\/{f} may appear in any of the sections.
#Wrap off
<C Declarations=>CDeclarati>: Syntax and usage of the C declarations section.
<Bison Declarations=>BisonDecla>: Syntax and usage of the Bison declarations section.
<Grammar Rules=>GrammarRul>: Syntax and usage of the grammar rules section.
<C Code=>CCode>: Syntax and usage of the additional C code section.
#Wrap on